package com.test;

/**
 * @Author: LiQingBo
 * @Date: 2021/6/20-06-20-15:21
 * @Description: com.test
 * @version: 1.0
 */
public class CatHeightComparator implements Comparator<Cat>{
    @Override
    public int compare(Cat o1, Cat o2) {
        return Integer.compare(o2.height, o1.height);
    }
}
